home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / intrvews / xgrab.lha / xgrab / include / clip.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-06  |  424 b   |  20 lines

  1. /**
  2.    GRAB Graph Layout and Browser System
  3.  
  4.    Copyright (c) 1986, 1988 Regents of the University of California
  5.    Copyright (c) 1989, Tera Computer Company
  6.  **/
  7.  
  8.   /* header file for clipping */
  9.  
  10. #ifndef clip_h
  11. #define clip_h
  12.  
  13. #include "digraph.h"
  14.  
  15.   /* find the proper shift distance for an edge with ordinality ord */
  16. #define ORD_TO_SHIFT(ord)    \
  17.     ( ((ord) / 2 * HALF_CHAR) * ( ( ((ord) - 1) % 2 == 0) ? -1 : 1))
  18.  
  19. #endif
  20.